package com.hyq.mapper;


import com.hyq.model.Teacher;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface TeacherDAO {
	
	public int validateNameTeacher(String name);
	
	public int sRegisterTeacher(Teacher t);
	
	public Teacher sLoginTeacher(Teacher t);
	
	public int cOldPasswordTeacher(@Param(value = "password") String password, @Param(value = "tid") int tid);

	public int updatePasswordTeacher(@Param(value = "password") String password, @Param(value = "tid") int tid);

	public int updateTnameTeacher(@Param(value = "tname") String tname, @Param(value = "tid") int tid);
	
	public  int tupdate(Teacher te);
	
	public Teacher  tsearchById(int tid);
	
	public List<Teacher> tSearch(String keyword);
	
	public int tBatchDelete(String arr[]);
	
	public List<Teacher> tUpdate(int tid);
	
	public Teacher tRefind(int tid);

}
